/**
 * Created by ying on 16-9-1.
 */
function Promotion(){
    this.name=["可口可乐",'雪碧','方便面'];
}

Promotion.prototype.get_pro_count=function(item,goods_info){
    if(this.name.indexOf(item.name)!=-1){
        goods_info[item.name].pro_count=Number(Math.floor(goods_info[item.name].count/3));
    }else{
        goods_info[item.name].pro_count=0;
    }
    return goods_info;
}